package com.xxl.job.executor.core.config;

import java.text.SimpleDateFormat;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * 日期转换配制
 * 
 * @author taotao
 *
 */
@Configuration
public class DateMapperConfig {
	
	@Bean
	public ObjectMapper getObjectMapper() {
		return new ObjectMapper().setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));
	}
}
